Ext.define("ECAT.view.Favorite", {
    extend: 'Ext.Container',
    requires: ['ECAT.view.ImgListFav'], 
    xtype : 'favorite',
    config: {
    	id : 'favorite',
    	width: 768,
    	height: 1024,
    	scrollable : false
    },
    initialize: function() {
		this.callParent();
		this.list_img_fav = Ext.create('ECAT.view.ImgListFav',{
    		id : 'list_img_fav',
    		top : 90
    	});
    	this.add(this.list_img_fav);
	},
	edit : function(){
		this.list_img_fav.setEditMode();
	},
	view : function(){
		this.list_img_fav.setViewMode();
	}
    
});

Ext.define('Ecat.DeleteMask', {
    extend: 'Ext.Mask',
    xtype: 'deletemask',
    getTemplate: function() {
        var prefix = Ext.baseCSSPrefix;
        return [
            {
                reference: 'innerElement',
                cls: prefix + ' mask-icon-delete'
            }
        ];
    }
});


